import Vue from 'vue'
import Router from 'vue-router'
import Banner from '@/components/banner'
import Redpacket from '@/components/redpacket'
import Notice from '@/components/notice'
import AllNotice from '@/components/allNotice'
import CustomHelp from '@/components/customHelp'
import RegerrHelp from '@/components/regerrHelp'
import Award from '@/components/award'
import FeedBack from '@/components/feedBack'
import HbAmount from '@/components/hbAmount'
import HbImmediate from '@/components/hbImmediate'
import Privacy from '@/components/privacy'
import Sign from '@/components/sign'
import MerchantCA from '@/components/merchantCA'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/banner',
      name: 'banner',
      component: Banner,
      meta: {
        title: '新销售利器'
      }
    },
    {
      path: '/redpacket',
      name: 'redpacket',
      component: Redpacket,
      meta: {
        title: '收单赚现金'
      }
    },
    {
      path: '/notice',
      name: 'notice',
      component: Notice,
      meta: {
        title: '公告'
      }
    },
    {
      path: '/allNotice',
      name: 'allNotice',
      component: AllNotice,
      meta: {
        title: '全部公告'
      }
    },
    {
      path: '/customHelp',
      name: 'customHelp',
      component: CustomHelp,
      meta: {
        title: '客服帮助'
      }
    }, {
      path: '/regerrHelp',
      name: 'regerrhelp',
      component: RegerrHelp,
      meta: {
        title: '注册失败及帮助页'
      }
    },
    {
      path: '/award',
      name: 'award',
      component: Award,
      meta: {
        title: '收单赚现金'
      }
    },

    {
      path: '/feedback',
      name: 'feedback',
      component: FeedBack,
      meta: {
        title: '意见反馈'
      }
    },
    {
      path: '/hbamount',
      name: 'hbamount',
      component: HbAmount,
      meta: {
        title: '花呗提额'
      }

    },
    {
      path: '/hbimmediate',
      name: 'hbimmediate',
      component: HbImmediate,
      meta: {
        title: '花呗提额'
      }

    },
    {
      path: '/privacy',
      name: 'privacy',
      component: Privacy,
      meta: {
        title: '隐私协议'
      }

    },
    {
      path: '/sign',
      name: 'sign',
      component: Sign,
      meta: {
        title: '商家注册'
      }

    },
    {
      path: '/merchantCA',
      name: 'merchantCA',
      component: MerchantCA,
      meta: {
        title: '商户合作协议'
      }

    }
  ]
})
